import request from '@/utils/request'

// 查询病区，一般对接第三方列表
export function listSickarea(query) {
  return request({
    url: '/manage/sickarea/list',
    method: 'get',
    params: query
  })
}

// 查询病区，一般对接第三方详细
export function getSickarea(sickAreaId) {
  return request({
    url: '/manage/sickarea/' + sickAreaId,
    method: 'get'
  })
}

// 新增病区，一般对接第三方
export function addSickarea(data) {
  return request({
    url: '/manage/sickarea',
    method: 'post',
    data: data
  })
}

// 修改病区，一般对接第三方
export function updateSickarea(data) {
  return request({
    url: '/manage/sickarea',
    method: 'put',
    data: data
  })
}

// 删除病区，一般对接第三方
export function delSickarea(sickAreaId) {
  return request({
    url: '/manage/sickarea/' + sickAreaId,
    method: 'delete'
  })
}
